<template>
  <el-input v-model="input" class="w-50 m-2" placeholder="搜索" @keyup.enter="handleEnter" :suffix-icon="Search" />
</template>

<script setup>
import { ref } from 'vue';
import { Search } from '@element-plus/icons-vue';

const input = ref('');
function handleEnter() {
  console.log(input.value);
}
</script>
<style></style>
